import json


class ReadUtil:

    # 封装读取数据文件的方法
    @classmethod
    def read_config(cls, file_path):
        with open(file_path, "r", encoding="utf-8") as f:
            data = json.load(f)
            list_data = []
            for mite in data:
                temp = tuple(mite.values())
                list_data.append(temp)
            return list_data
